﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;

using FRL.DebtChased.Repository;
using FRL.DebtChased.Website;
using FRLUser = FRL.DebtChased.Repository.User;
using FRLUserAccess = FRL.DebtChased.Repository.UserAccess;

namespace WebApplication
{

	/// <summary>
	/// Declaration of Default class
	/// </summary>
	public partial class Default1 : System.Web.UI.Page
	{

		/////////////////////////////////////////////////////////////
		// Event handlers

		protected void Page_Load(object sender, EventArgs e)
		{

			// If this is a postback...
			if (this.IsPostBack)
			{

			}
			else
			{

				// Set colours
				pnlHeading.BackColor = MyApplication.BindMyApplication().PrimaryWebColor;
				pnlFooter.BackColor = pnlHeading.BackColor;

			}

		}

		protected void butDebtorLogon_Click(object sender, EventArgs e)
		{

			// Validate the page
			this.Page.Validate();
			if (!this.Page.IsValid)
				return;

			// Set error
			ltErrorMsg.Text = "The username and password combination were not recognised.";
			pnlError.Visible = true;

		}

	}

}